from django.db import models
from student.models import Student
from course.models import Course


# Create your models here.

class Achievement(models.Model):
    id = models.AutoField(primary_key=True)
    student_number = models.ForeignKey(Student, on_delete=models.CASCADE, related_name="stuNum")
    course_number = models.ForeignKey(Course, on_delete=models.CASCADE, related_name="courseNum")
    course_grade = models.CharField(max_length=50)
